

import type { Istoreproductreply } from './entity';
import type { IPageParams } from '@/types/table'
import request from '@/api/request'

export function getPageList(params: IPageParams) {
  return request({
    url: `admin/store/product/reply/list`,
    method: 'get',
    params,
    loading: true
  })
}
/**
 * 商品评论 回复
 * @param pram
 */
export function replyCommentApi(data) {
  return request({
    url: `/admin/store/product/reply/comment`,
    method: 'post',
    data
  })
}
export function storeproductreplyDel(id) {
  return request({
    url: `/admin/store/product/reply/delete/${id}`,
    method: 'GET'
  })
}
export function storeproductreplyinfo(id) {
  return request({
    url: `admin/store/product/reply/info/${id}`,
    method: 'get'
  })
}
export function storeproductreplySelect(id) {
  return request({
    url: `admin/store/product/reply/select`,
    method: 'get'
  })
}
export function productLstApi(params) {
  return request({
    url: '/admin/store/product/list',
    method: 'GET',
    params
  })
}
export function storeproductreplyAddup(data) {
  return request({
    url: `admin/store/product/reply/${!data.id ? 'save' : 'update'}`,
    method: 'post',
    data
  })
}
